package com.xiaotu.es.controller;

import com.xiaotu.es.service.EsUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * @author zhangxiao
 * @create 2022-04-11 15:28
 */
@RestController
@RequestMapping("esUser")
public class EsUserController {

    @Autowired
    private EsUserService esUserService;

    @GetMapping("searchUser")
    public Object searchUser(Integer pageNum, Integer pageSize, String school) {
        return esUserService.searchUser(pageNum, pageSize, school);
    }

}
